home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / UCRASM25.ARJ / LTOAM.ASM < prev    next >
Assembly Source File  |  1991-10-12  |  702b  |  40 lines

  1. StdGrp        group    stdlib,stddata
  2. stddata        segment    para public 'sldata'
  3. stddata        ends
  4. ;
  5. stdlib        segment    para public 'slcode'
  6.         assume    cs:stdgrp
  7. ;
  8.         extrn    sl_malloc:far, sl_ltoa:far, sl_ultoa:far
  9. ;
  10. ;
  11. ;
  12. ; LTOAM-    Processes 32-bit signed value in DX:AX.
  13. ;
  14.         public    sl_ltoam
  15. sl_ltoam    proc    far
  16.         push    cx
  17.         mov    cx, 11        ;Needs up to 11 chars.
  18.         call    sl_malloc
  19.         pop    cx
  20.         jnc    GotoLTOA
  21.         ret
  22. GotoLTOA:    jmp    sl_ltoa
  23. sl_ltoam    endp
  24. ;
  25. ;
  26. ; ULTOAM-    Processes 32-bit unsigned value in DX:AX.
  27. ;
  28.         public    sl_ultoam
  29. sl_ultoam    proc    far
  30.         push    cx
  31.         mov    cx, 11        ;Needs up to 11 chars.
  32.         call    sl_malloc
  33.         pop    cx
  34.         jnc    GotoULTOA
  35.         ret
  36. GotoULTOA:    jmp    sl_ultoa
  37. sl_ultoam    endp
  38. ;
  39. stdlib        ends
  40.         end